import QtQuick 2.15
import QtQuick.Controls 2.15

ApplicationWindow {
	width: 800; height: 700
	visible: true
	
	Rectangle {
		id: rect1
		width: 300; height: 200
		color: 'lightsteelblue'
		
		MouseArea {
			anchors.fill:parent
			onClicked: rect2.visible = !rect2.visible
		}
	}
	Rectangle {
		id: rect2
		y:400
		width: 76; height: 96
		border.color: "red"
		border.width: 4
		radius: 8
	}
}